class FamilyMemberEntity {
  int id;
  int identity;
  String userId;
  String idNumber;
  int familyId;
  String phone;
  String password;
  String currentGold;
  int keyNumbers;
  int status;
  int type;
  String appToken;
  int tokenTime;
  String wechatUnionid;
  String qqUnionid;
  String createdAt;
  String updatedAt;
  String joinFamily;
  int contribution;
  int winNumbers;
  String notWon;
  String nickname;
  String avatar;
  String familyName;

  FamilyMemberEntity(
      {this.id,
        this.identity,
        this.userId,
        this.idNumber,
        this.familyId,
        this.phone,
        this.password,
        this.currentGold,
        this.keyNumbers,
        this.status,
        this.type,
        this.appToken,
        this.tokenTime,
        this.wechatUnionid,
        this.qqUnionid,
        this.createdAt,
        this.updatedAt,
        this.joinFamily,
        this.contribution,
        this.winNumbers,
        this.notWon,
        this.nickname,
        this.avatar,
        this.familyName});

  FamilyMemberEntity.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    identity = json['identity'];
    userId = json['userId'];
    idNumber = json['id_number'];
    familyId = json['family_id'];
    phone = json['phone'];
    password = json['password'];
    currentGold = json['current_gold'];
    keyNumbers = json['key_numbers'];
    status = json['status'];
    type = json['type'];
    appToken = json['app_token'];
    tokenTime = json['token_time'];
    wechatUnionid = json['wechat_unionid'];
    qqUnionid = json['qq_unionid'];
    createdAt = json['created_at'];
    updatedAt = json['updated_at'];
    joinFamily = json['join_family'];
    contribution = json['contribution'];
    winNumbers = json['win_numbers'];
    notWon = json['not_won'];
    nickname = json['nickname'];
    avatar = json['avatar'];
    familyName = json['familyName'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['identity'] = this.identity;
    data['userId'] = this.userId;
    data['id_number'] = this.idNumber;
    data['family_id'] = this.familyId;
    data['phone'] = this.phone;
    data['password'] = this.password;
    data['current_gold'] = this.currentGold;
    data['key_numbers'] = this.keyNumbers;
    data['status'] = this.status;
    data['type'] = this.type;
    data['app_token'] = this.appToken;
    data['token_time'] = this.tokenTime;
    data['wechat_unionid'] = this.wechatUnionid;
    data['qq_unionid'] = this.qqUnionid;
    data['created_at'] = this.createdAt;
    data['updated_at'] = this.updatedAt;
    data['join_family'] = this.joinFamily;
    data['contribution'] = this.contribution;
    data['win_numbers'] = this.winNumbers;
    data['not_won'] = this.notWon;
    data['nickname'] = this.nickname;
    data['avatar'] = this.avatar;
    data['familyName'] = this.familyName;
    return data;
  }
}